/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Mikkel
 */
public class Distance {
    private int ID;
    private String startDestination;
    private String endDestination;
    private int distance;
    

    public Distance(int ID, String startDestination, String endDestination, int distance) {
        this.startDestination = startDestination;
        this.endDestination = endDestination;
        this.distance = distance;
        this.ID = ID;
    }

    public String getStartDestination() {
        return startDestination;
    }

    public String getEndDestination() {
        return endDestination;

    }
    
    public int getDistance (){
        return distance;
    }
    
    public int getID(){
        return ID;
    }
    
    public String toStringSQL(){
        return "('"+startDestination+"', '"+endDestination+"', "+distance+")";
    }

    public String toString() {
        return "StartDestination: " + startDestination + "\nEndDestination: " + endDestination + "\nDistance: " + distance+" km.";
    }
}